package com.lucas.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.logging.Logger;

/**
 * @program: spring_cloud_lagou_homework
 * @author: lucasLu
 **/
@RequestMapping("/test")
@RestController
public class testController {

    private Logger logger = Logger.getLogger("testController");

    @RequestMapping("/hello")
    @ResponseBody
    public String testHello(){
        logger.info("进入了testHello 方法");
        return "hello world";
    }
}
